import axios from "@/apis/request";

// login api
export const LoginApi = (data: any, platform: string, loginType: number) => {
    return axios({
        url: '/auth/auth/login?platform=' + platform + '&loginType=' + loginType,
        method: 'post',
        data: data,
        config: {}
    });
}

// register api
export const RegisterApi = (data: any) => {
    return axios({
        url: '/auth/sign/register',
        method: 'post',
        data: data,
        config: {}
    });
}